package com.xwt.pattern.strategy;

/**
 * Author:  Steven Xiao
 * Description:计谋有了，那还要有锦囊
 * Date:  2016/3/10
 * Time:  15:56
 */
public class Context {
    private IStrategy strategy;

    public Context(IStrategy strategy) {
        this.strategy = strategy;
    }

    //使用计谋了，看我出招了
    public void operate(){
        this.strategy.operate();
    }
}
